package com.lxm.controller;

import com.lxm.service.EmpService;
import com.lxm.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class EmpRegisterController {
    @Autowired
    private EmpService empService;
    @RequestMapping("/register.do")
    public String execute(String name, String password,Integer age,Integer deptId){
        Result result=empService.register(name,password,age,deptId);
        return "login.jsp";
    }
}
